package com.luoqiz.utils;


public class SysConvert {
	
	// 十进制转二进制
	public static String decToBin(int a) {
		StringBuilder sb=new StringBuilder();
		for (int i = 31; i >= 0; i--) {
			sb.append((a >> i) & 0x1);
		}
		return sb.toString();
	}
	//使用字节表示0-255
	public static int unsignedByte(byte b) {
		return b & 0xff;

	}
}
